package com.e2oto.seller.modules.seller.bean;

import java.util.List;

/**
 * Created by hongyu on 2017/3/7 上午11:05.
 * 作用：解析banner返回
 */

public class BannerBean {

    /**
     * data : [{"id":2,"seller_id":30,"type":0,"icon":"upload/2017/03/01/20170301050001554.jpg","sort":1,"area":659004405},{"id":1,"seller_id":25,"type":0,"icon":"upload/2017/03/01/20170301050001352.jpg","sort":2,"area":659004405},{"id":4,"seller_id":45,"type":0,"icon":"upload/2017/03/01/20170301050001781.jpg","sort":3,"area":659004405},{"id":3,"seller_id":62,"type":0,"icon":"upload/2017/03/01/20170301050001781.jpg","sort":4,"area":659004405},{"id":5,"seller_id":65,"type":0,"icon":"upload/2017/03/01/20170301050001781.jpg","sort":5,"area":659004405}]
     * code : 2000
     * message : 请求成功
     */

    private int code;
    private String message;
    private List<DataBean> data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * id : 2
         * seller_id : 30
         * type : 0
         * icon : upload/2017/03/01/20170301050001554.jpg
         * sort : 1
         * area : 659004405
         */

        private int id;
        private int seller_id;
        private int type;
        private String icon;
        private int sort;
        private int area;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getSeller_id() {
            return seller_id;
        }

        public void setSeller_id(int seller_id) {
            this.seller_id = seller_id;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public String getIcon() {
            return icon;
        }

        public void setIcon(String icon) {
            this.icon = icon;
        }

        public int getSort() {
            return sort;
        }

        public void setSort(int sort) {
            this.sort = sort;
        }

        public int getArea() {
            return area;
        }

        public void setArea(int area) {
            this.area = area;
        }

        @Override
        public String toString() {
            return "DataBean{" +
                    "id=" + id +
                    ", seller_id=" + seller_id +
                    ", type=" + type +
                    ", icon='" + icon + '\'' +
                    ", sort=" + sort +
                    ", area=" + area +
                    '}';
        }

    }

    @Override
    public String toString() {
        return "BannerBean{" +
                "code=" + code +
                ", message='" + message + '\'' +
                ", data=" + data +
                '}';
    }
}
